<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=zh-cn xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<HEAD>
<TITLE>快捷按钮</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../../css/style.css" type="text/css" rel="stylesheet">
<LINK href="../../css/shortcut.css" type="text/css" rel="stylesheet">
<SCRIPT>
function killErrors()
{
  return true;
}
window.onerror = killErrors;

var $ = function(id) {return document.getElementById(id);};
function openURL(URL,open_window)
{
  	 if(open_window)
  	    window.open(URL);
  	 else
  	    parent.main.location=URL;
}

function winexe(NAME,PROG)
{
   URL="/general/winexe?PROG="+PROG+"&NAME="+NAME;
   window.open(URL,"winexe","height=100,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=0,left=0,resizable=no");
}

function re_login()
{
	msg="您好，系统管理员！\n轻轻的您走了，正如您轻轻的来…… \n\n确认要注销吗？";
  if(window.confirm(msg))
  {
     parent.parent.relogin=1;
     parent.parent.location="../login.html";
   }
}

var view_flag1=1;
var frame_rows = parent.parent.parent.document.getElementById("frame1").rows;
function my_menu_view1(id)
{
	var el=document.getElementById(id);
	if(view_flag1==1)
	{
     parent.parent.parent.document.getElementById("frame1").rows="0"+frame_rows.substr(frame_rows.indexOf(","));
      el.className="call_down";
  }
	else
	{
		 parent.parent.parent.document.getElementById("frame1").rows=frame_rows;
      el.className="call_up";
  }

  view_flag1=1-view_flag1;
}

var view_flag2=1;
var frame_cols = parent.parent.parent.document.getElementById("frame2").cols;
function my_menu_view2(id)
{
	var el=document.getElementById(id);
	if(view_flag2==1)
	{
      parent.parent.document.getElementById("frame2").cols="0"+frame_cols.substr(frame_cols.indexOf(","));
      el.className="call_right";
   }
   else
	{
      parent.parent.document.getElementById("frame2").cols=frame_cols;
      el.className="call_left";
   }

  view_flag2=1-view_flag2;
}
function startmarquee()
{
   var t,p=true,movepixel=1;
   var tb=document.getElementById("NAV");
   var o=document.getElementById("Nav_div");
   var m=document.getElementById("menu_tb");
   var r=document.getElementById("NavRight");
   var lineHeight=o.scrollHeight/m.rows.length;
   if(m.rows.length>1)
   {
      tb.onmouseover=function(){r.style.display="";}
      tb.onmouseout =function(){r.style.display="none";}
      r.onmouseover=function(){r.src="../../img/nav_r2.gif";}
      r.onmouseout =function(){r.src="../../img/nav_r1.gif";}
      p=false;
   }
   r.onclick=function(){if(p) return; movepixel=1; t=setInterval(scroll_up,10); p=true;}
   document.body.onmousewheel=function(){if(p) return; if(event.wheelDelta>0) movepixel=-1; else movepixel=1; t=setInterval(scroll_up,10); p=true;}

   function scroll_up()
   {
      o.scrollTop+=movepixel;
      if(movepixel>0)
      {
         if(o.scrollTop % (lineHeight) == lineHeight-1)
         {
            clearInterval(t);
            p=false;
         }
         if(o.scrollTop>=lineHeight*(m.rows.length-1))
         {
            clearInterval(t);
            o.scrollTop=0;
            p=false;
         }
      }
      else
      {
         if(o.scrollTop % (lineHeight) == 1)
         {
            clearInterval(t);
            p=false;
         }
         if(o.scrollTop-1<0)
         {
            clearInterval(t);
            o.scrollTop=lineHeight*(m.rows.length-1);
            p=false;
         }
      }
   }
}

//add by YZQ 2008-03-05 begin
function bindFunc() {
  var args = [];
  for (var i = 0, cnt = arguments.length; i < cnt; i++) {
    args[i] = arguments[i];
  }
  var __method = args.shift();
  var object = args.shift();
  return (
    function(){
      var argsInner = [];
		  for (var i = 0, cnt = arguments.length; i < cnt; i++) {
		    argsInner[i] = arguments[i];
		  }
      return __method.apply(object, args.concat(argsInner));
    });
}
var timerId = null;
var firstTime = true;
//add by YZQ 2008-03-05 end
function d(URL,id)
{
   //add by YZQ 2008-03-05 begin
   var winMgr = parent.main.winManager;
	 if (!winMgr) {
	   if (firstTime) {
	     openURL("/t9apps/common/frame.jsp");
	     firstTime = false;
	   }
	   timerId = setTimeout(bindFunc(d, window, URL, id), 100);
	   return;
	 }
	 firstTime = true;
	 if (timerId) {
	   clearTimeout(timerId);
	 }
	 if (winMgr) {
	   winMgr.openActionPort("/t9apps/"+URL, $("f" + id).innerText);
	   return;
	 }
   //add by YZQ 2008-03-05 end

   URL = "/t9apps/"+URL;
   openURL(URL);
}
</SCRIPT>

<META content="MSHTML 6.00.6000.21089" name=GENERATOR>
</HEAD>
<BODY onload=startmarquee();>
<TABLE class=small id=NAV cellSpacing=0 cellPadding=0 width="100%"
	border=0>
	<TBODY>
		<TR height=30>
			<TD vAlign=top noWrap width=18><A class=call_left id=arrow2
				title=显示/隐藏左侧面板 href="javascript:my_menu_view2('arrow2')"></A></TD>
			<TD title=此栏显示您定义的菜单快捷组，鼠标滚轮上下翻页 noWrap>
			<DIV id=Nav_div>
			<TABLE class=small id=menu_tb cellSpacing=0 cellPadding=0 border=0>
				<TBODY>
					<TR height=30>
						<TD>
						<UL>
							<LI><A id=f1 href="javascript:openURL('/general/email')"></A>
							<LI><A id=f4
								href="javascript:openURL('/general/notify/show')"><SPAN>&nbsp;
							<IMG height=16 src="../../img/notify.gif" width=16>
							公告通知&nbsp;</SPAN></A>
							<LI><A id=f8 href="javascript:openURL('/general/calendar')"></A>
							<LI><A id=f9
								href="javascript:openURL('../office/log/log.html')"><SPAN>&nbsp;
							<IMG height=16 src="../../img/diary.gif" width=16>
							工作日志&nbsp;</SPAN></A>
							<LI><A id=f5
								href="javascript:openURL('/general/workflow/list')"></A></LI>
						</UL>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			</DIV>
			</TD>
			<TD noWrap align=right><IMG id=NavRight title=显示下一行菜单
				style="DISPLAY: none; CURSOR: pointer" src="../../img/nav_r1.gif"
				align=absMiddle>&nbsp; <A href="intel_view.jsp" target=main>
			<IMG height=16 alt=我的办公桌 src="../../img/mytable.gif" width=16
				align=absMiddle border=0> 桌面</A>&nbsp; <A href="../../index.jsp"
				target="_blank"> <IMG height=16 alt="更改界面主题风格及个性设置等"
				src="../../img/theme.gif" width=16 align=absMiddle border=0>
			首页</A>&nbsp; <A href="javascript:re_login();"><IMG alt=注销admin
				src="../../img/login.gif" align=absMiddle border=0> 注销</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<A class=call_up id=arrow1 href="javascript:my_menu_view1('arrow1')"
				alt="显示/隐藏顶部标题栏"></A></TD>
		</TR>
	</TBODY>
</TABLE>
</BODY>
</HTML>
